{% extends "base.html" %}
{% block content %}
    {{ block.super }}
    <h3> Delete Endpoint {{ endpoint }}{% if endpoint.is_broken %} <span data-toggle="tooltip" title="Endpoint is broken. Check documentation to look for fix process" >&#128681;</span>{% endif %}</h3>
    <p>
        Deleting this Endpoint will disassociate it with any findings and products and other relationships associated
        with it. These relationships are listed below:
    </p>
    <div class="danger-zone panel panel-danger">
        <div class="panel-heading">
            <h3>Danger Zone</h3>
        </div>
        {% if rels|length > 1 %}
            <ul class="left">{{ rels|unordered_list }}</ul>
        {% else %}
            <p class="text-center">No relationships found.</p>
        {% endif %}
        <form class="form-horizontal" method="post">
            {% csrf_token %}
            {{ form }}

            <div class="form-group">
                <button class="btn btn-danger" type="submit" name="delete_name" value="delete_test">Delete Endpoint</button>
            </div>
        </form>
    </div>
    <br/>
{% endblock %}
